---
category: Level 1 — Basic
created: '2020-02-17'
keywords:
title: Append to an element
---

Append the `ele` element to the end of the `target` element:

```js
target.appendChild(ele);
```

## See also

-   [Insert an element after or before other element](https://phuoc.ng/collection/html-dom/insert-an-element-after-or-before-other-element/)
-   [Insert given html after or before an element](https://phuoc.ng/collection/html-dom/insert-given-html-after-or-before-an-element/)
-   [Prepend to an element](https://phuoc.ng/collection/html-dom/prepend-to-an-element/)
-   Discover the differences between the [`append` and `appendChild`](https://phuoc.ng/collection/this-vs-that/append-vs-append-child/)
